me$ cd ~/Desktop
me$ php -f php7-encrypt-for-encryptor-AES256.php 

---------------------------------------------------------------------------------------
TROI test of php generated encrypted data to be decrypted with Troi Encryptor Plug-in 6.0
-----------------------------------------------------------------------------------------

Generate the key.
Generating the key with pbkdf2 and iterations = 10000
   Using Salt (hex)    = 2e20e9e2a761bf28
   Generated Key (hex) = ac31f02a67896210a68f2e5cfa8640dbe352dfc0fc085e0c9488a018918a8a26
   Using IV (hex) = 40a9082f5e70e0046aefd3f15812c473
   Block size = 16
   IV size = 16
   Key size = 32

Encrypting the data now.
The encrypted data (Base64), no salt added yet: 
------------------------------------------------------
iFRks1LUjG/AyiWCJUbDNJ/3kjpwcsENXgXifxcSdnaO+2lEG0/glMaa2GNF3hZXM3Ln89TW1NYwp7aTPFkoF50bn5Vd39Sv1s6UKWmATNXQPO1sFlSCpLUTYHoEmbhXRsZHMA/3VAgTLgc4w+3MwQ==
------------------------------------------------------

Adding salt string to the result.
The encrypted data (formatted, Base64): 
------------------------------------------------------
U2FsdGVkX18uIOnip2G/KIhUZLNS1IxvwMolgiVGwzSf95I6cHLBDV4F4n8XEnZ2jvtpRBtP4JTGmthjRd4WVzNy5/PU1tTWMKe2kzxZKBedG5+VXd/Ur9bOlClpgEzV0DztbBZUgqS1E2B6BJm4V0bGRzAP91QIEy4HOMPtzME=
------------------------------------------------------
Written the encrypted data into this file: /Users/tro/Desktop/PHP_Encrypted_data.txt

End of script

me$ 

